package l1j.opqlo.NewSystem.寄賣系統;


import l1j.server.server.model.Instance.L1ItemInstance;
import l1j.server.server.templates.L1Account;
import l1j.server.server.templates.L1Item;

public class AutoShop {

	//private static Logger _log = Logger.getLogger(AutoShop.class.getName());

	private L1Account _pcaccount;
	private final L1ItemInstance _shopitem;
	private final L1Item _item;
	private final int _price ,_id ,_gfxid;
	long _count;



	public AutoShop(final String account, final int id, final int itemid,  final L1Item itemTemplate,
					final long count, final int enchantlvl,final int is_id, final int durability,final int charge_count,final int remaining_time,
					final int bless, final int attr_enchant_kind, final int attr_enchant_level, final int firemr,final int watermr,
					final int earthmr, final int windmr, final int addsp, final int addhp, final int addmp,final int hpr,
					final int mpr, final int SkillType, final int level , final int price){


		this._id =id;
		this._shopitem = new L1ItemInstance();
		this._shopitem.setId(this._id);
		this._item = itemTemplate;
		this._gfxid = this._item.getGfxId();
		this._shopitem.setItem(this._item);
		this._count = count;
		this._shopitem.setCount(this._count);
		this._shopitem.setEnchantLevel(enchantlvl);
		this._shopitem.setIdentified(is_id  != 0 ? true : false);
		this._shopitem.set_durability(durability);
		this._shopitem.setChargeCount(charge_count);
		this._shopitem.setRemainingTime(remaining_time);
		this._shopitem.setBless(bless);
		this._shopitem.setAttrEnchantKind(attr_enchant_kind);
		this._shopitem.setAttrEnchantLevel(attr_enchant_level);
		this._shopitem.setFireMr(firemr);
		this._shopitem.setWaterMr(watermr);
		this._shopitem.setWindMr(windmr);
		this._shopitem.setEarthMr(earthmr);
		this._shopitem.setaddSp(addsp);
		this._shopitem.setaddHp(addhp);
		this._shopitem.setaddMp(addmp);
		this._shopitem.setHpr(hpr);
		this._shopitem.setMpr(mpr);
		this._shopitem.setSkillType(SkillType);
		this._shopitem.setLevel(level);
		//_pcaccount = account;
		this._price =price;


	}

	public int getCount(){
		return (int) this._count;
	}
	public int getGfxid(){
		return this._gfxid;
	}
	public L1Item getItem(){
		return this._item;
	}
	public L1ItemInstance getIteminstance(){
		return this._shopitem;
	}
	public L1Account getPcAccount(){
		return this._pcaccount;
	}
	public int getPrice(){
		return this._price;
	}
	public int getShopId(){
		return this._id;
	}



}
